home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_xemacs.idb / usr / freeware / lib / xemacs-20.4 / lisp / packages / saveplace.elc.z / saveplace.elc
Emacs Compiled Lisp  |  1998-05-21  |  4.9 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was processed as: Emacs Compiled Lisp (other/emacsCompiledLisp).
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
1% dexvert Emacs Compiled Lisp (other/emacsCompiledLisp) magic Unsupported
100% file Emacs/XEmacs v20 byte-compiled Lisp data default
99% file data default
55% TrID Emacs/XEmacs byte-compiled Lisp (generic) default
44% TrID Summation Document Image Information Load File default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 14 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 6a 75 73 74 69 6e 62 |piled by| justinb|
|00000020| 40 65 62 6f 6e 79 2e 63 | 72 61 79 2e 63 6f 6d 20 |@ebony.c|ray.com |
|00000030| 6f 6e 20 4d 6f 6e 20 4d | 61 72 20 20 39 20 31 32 |on Mon M|ar 9 12|
|00000040| 3a 35 33 3a 32 32 20 31 | 39 39 38 0a 3b 3b 3b 20 |:53:22 1|998.;;; |
|00000050| 66 72 6f 6d 20 66 69 6c | 65 20 2f 68 6f 6d 65 2f |from fil|e /home/|
|00000060| 61 73 70 65 6e 30 37 2f | 6a 75 73 74 69 6e 62 2f |aspen07/|justinb/|
|00000070| 72 6f 6f 74 73 2f 66 72 | 65 65 77 61 72 65 2f 78 |roots/fr|eeware/x|
|00000080| 65 6d 61 63 73 2f 32 30 | 2e 33 2f 78 65 6d 61 63 |emacs/20|.3/xemac|
|00000090| 73 2d 32 30 2e 33 2f 6c | 69 73 70 2f 70 61 63 6b |s-20.3/l|isp/pack|
|000000a0| 61 67 65 73 2f 73 61 76 | 65 70 6c 61 63 65 2e 65 |ages/sav|eplace.e|
|000000b0| 6c 0a 3b 3b 3b 20 65 6d | 61 63 73 20 76 65 72 73 |l.;;; em|acs vers|
|000000c0| 69 6f 6e 20 32 30 2e 34 | 20 22 45 6d 65 72 61 6c |ion 20.4| "Emeral|
|000000d0| 64 22 20 58 45 6d 61 63 | 73 20 20 4c 75 63 69 64 |d" XEmac|s Lucid|
|000000e0| 2e 0a 3b 3b 3b 20 62 79 | 74 65 63 6f 6d 70 20 76 |..;;; by|tecomp v|
|000000f0| 65 72 73 69 6f 6e 20 32 | 2e 32 35 20 58 45 6d 61 |ersion 2|.25 XEma|
|00000100| 63 73 3b 20 32 32 2d 4d | 61 72 2d 39 36 2e 0a 3b |cs; 22-M|ar-96..;|
|00000110| 3b 3b 20 6f 70 74 69 6d | 69 7a 61 74 69 6f 6e 20 |;; optim|ization |
|00000120| 69 73 20 6f 6e 2e 0a 3b | 3b 3b 20 74 68 69 73 20 |is on..;|;; this |
|00000130| 66 69 6c 65 20 75 73 65 | 73 20 6f 70 63 6f 64 65 |file use|s opcode|
|00000140| 73 20 77 68 69 63 68 20 | 64 6f 20 6e 6f 74 20 65 |s which |do not e|
|00000150| 78 69 73 74 20 69 6e 20 | 45 6d 61 63 73 20 31 39 |xist in |Emacs 19|
|00000160| 2e 0a 0a 28 69 66 20 28 | 61 6e 64 20 28 62 6f 75 |...(if (|and (bou|
|00000170| 6e 64 70 20 27 65 6d 61 | 63 73 2d 76 65 72 73 69 |ndp 'ema|cs-versi|
|00000180| 6f 6e 29 0a 09 20 28 6f | 72 20 28 61 6e 64 20 28 |on).. (o|r (and (|
|00000190| 62 6f 75 6e 64 70 20 27 | 65 70 6f 63 68 3a 3a 76 |boundp '|epoch::v|
|000001a0| 65 72 73 69 6f 6e 29 20 | 65 70 6f 63 68 3a 3a 76 |ersion) |epoch::v|
|000001b0| 65 72 73 69 6f 6e 29 0a | 09 20 20 20 20 20 28 73 |ersion).|. (s|
|000001c0| 74 72 69 6e 67 2d 6c 65 | 73 73 70 20 65 6d 61 63 |tring-le|ssp emac|
|000001d0| 73 2d 76 65 72 73 69 6f | 6e 20 22 32 30 22 29 29 |s-versio|n "20"))|
|000001e0| 29 0a 20 20 20 20 28 65 | 72 72 6f 72 20 22 60 73 |). (e|rror "`s|
|000001f0| 61 76 65 70 6c 61 63 65 | 2e 65 6c 27 20 77 61 73 |aveplace|.el' was|
|00000200| 20 63 6f 6d 70 69 6c 65 | 64 20 66 6f 72 20 45 6d | compile|d for Em|
|00000210| 61 63 73 20 32 30 22 29 | 29 0a 0a 28 6f 72 20 28 |acs 20")|)..(or (|
|00000220| 62 6f 75 6e 64 70 20 27 | 63 75 72 72 65 6e 74 2d |boundp '|current-|
|00000230| 6c 6f 61 64 2d 6c 69 73 | 74 29 20 28 73 65 74 71 |load-lis|t) (setq|
|00000240| 20 63 75 72 72 65 6e 74 | 2d 6c 6f 61 64 2d 6c 69 | current|-load-li|
|00000250| 73 74 20 6e 69 6c 29 29 | 0a 0a 0a 28 63 75 73 74 |st nil))|...(cust|
|00000260| 6f 6d 2d 64 65 63 6c 61 | 72 65 2d 67 72 6f 75 70 |om-decla|re-group|
|00000270| 20 27 73 61 76 65 2d 70 | 6c 61 63 65 20 6e 69 6c | 'save-p|lace nil|
|00000280| 20 22 41 75 74 6f 6d 61 | 74 69 63 61 6c 6c 79 20 | "Automa|tically |
|00000290| 73 61 76 65 20 70 6c 61 | 63 65 20 69 6e 20 66 69 |save pla|ce in fi|
|000002a0| 6c 65 73 2e 22 20 3a 67 | 72 6f 75 70 20 27 64 61 |les." :g|roup 'da|
|000002b0| 74 61 29 0a 23 40 32 35 | 35 20 41 6c 69 73 74 20 |ta).#@25|5 Alist |
|000002c0| 6f 66 20 73 61 76 65 64 | 20 70 6c 61 63 65 73 20 |of saved| places |
|000002d0| 74 6f 20 67 6f 20 62 61 | 63 6b 20 74 6f 20 77 68 |to go ba|ck to wh|
|000002e0| 65 6e 20 72 65 76 69 73 | 69 74 69 6e 67 20 66 69 |en revis|iting fi|
|000002f0| 6c 65 73 2e 0a 45 61 63 | 68 20 65 6c 65 6d 65 6e |les..Eac|h elemen|
|00000300| 74 20 6c 6f 6f 6b 73 20 | 6c 69 6b 65 20 28 46 49 |t looks |like (FI|
|00000310| 4c 45 4e 41 4d 45 20 2e | 20 50 4f 53 49 54 49 4f |LENAME .| POSITIO|
|00000320| 4e 29 3b 0a 76 69 73 69 | 74 69 6e 67 20 66 69 6c |N);.visi|ting fil|
|00000330| 65 20 46 49 4c 45 4e 41 | 4d 45 20 67 6f 65 73 20 |e FILENA|ME goes |
|00000340| 61 75 74 6f 6d 61 74 69 | 63 61 6c 6c 79 20 74 6f |automati|cally to|
|00000350| 20 70 6f 73 69 74 69 6f | 6e 20 50 4f 53 49 54 49 | positio|n POSITI|
|00000360| 4f 4e 0a 72 61 74 68 65 | 72 20 74 68 61 6e 20 74 |ON.rathe|r than t|
|00000370| 68 65 20 62 65 67 69 6e | 6e 69 6e 67 20 6f 66 20 |he begin|ning of |
|00000380| 74 68 65 20 62 75 66 66 | 65 72 2e 0a 54 68 69 73 |the buff|er..This|
|00000390| 20 61 6c 69 73 74 20 69 | 73 20 73 61 76 65 64 20 | alist i|s saved |
|000003a0| 62 65 74 77 65 65 6e 20 | 45 6d 61 63 73 20 73 65 |between |Emacs se|
|000003b0| 73 73 69 6f 6e 73 2e 1f | 0a 28 64 65 66 76 61 72 |ssions..|.(defvar|
|000003c0| 20 73 61 76 65 2d 70 6c | 61 63 65 2d 61 6c 69 73 | save-pl|ace-alis|
|000003d0| 74 20 6e 69 6c 20 28 23 | 24 20 2e 20 36 39 38 29 |t nil (#|$ . 698)|
|000003e0| 29 0a 28 63 75 73 74 6f | 6d 2d 64 65 63 6c 61 72 |).(custo|m-declar|
|000003f0| 65 2d 76 61 72 69 61 62 | 6c 65 20 27 73 61 76 65 |e-variab|le 'save|
|00000400| 2d 70 6c 61 63 65 20 27 | 6e 69 6c 20 22 2a 4e 6f |-place '|nil "*No|
|00000410| 6e 2d 6e 69 6c 20 6d 65 | 61 6e 73 20 61 75 74 6f |n-nil me|ans auto|
|00000420| 6d 61 74 69 63 61 6c 6c | 79 20 73 61 76 65 20 70 |maticall|y save p|
|00000430| 6c 61 63 65 20 69 6e 20 | 65 61 63 68 20 66 69 6c |lace in |each fil|
|00000440| 65 2e 5c 6e 54 68 69 73 | 20 6d 65 61 6e 73 20 77 |e.\nThis| means w|
|00000450| 68 65 6e 20 79 6f 75 20 | 76 69 73 69 74 20 61 20 |hen you |visit a |
|00000460| 66 69 6c 65 2c 20 70 6f | 69 6e 74 20 67 6f 65 73 |file, po|int goes|
|00000470| 20 74 6f 20 74 68 65 20 | 6c 61 73 74 20 70 6c 61 | to the |last pla|
|00000480| 63 65 5c 6e 77 68 65 72 | 65 20 69 74 20 77 61 73 |ce\nwher|e it was|
|00000490| 20 77 68 65 6e 20 79 6f | 75 20 70 72 65 76 69 6f | when yo|u previo|
|000004a0| 75 73 6c 79 20 76 69 73 | 69 74 65 64 20 74 68 65 |usly vis|ited the|
|000004b0| 20 73 61 6d 65 20 66 69 | 6c 65 2e 5c 6e 54 68 69 | same fi|le.\nThi|
|000004c0| 73 20 76 61 72 69 61 62 | 6c 65 20 69 73 20 61 75 |s variab|le is au|
|000004d0| 74 6f 6d 61 74 69 63 61 | 6c 6c 79 20 62 75 66 66 |tomatica|lly buff|
|000004e0| 65 72 2d 6c 6f 63 61 6c | 2e 5c 6e 5c 6e 49 66 20 |er-local|.\n\nIf |
|000004f0| 79 6f 75 20 77 69 73 68 | 20 79 6f 75 72 20 70 6c |you wish| your pl|
|00000500| 61 63 65 20 69 6e 20 61 | 6e 79 20 66 69 6c 65 20 |ace in a|ny file |
|00000510| 74 6f 20 61 6c 77 61 79 | 73 20 62 65 20 61 75 74 |to alway|s be aut|
|00000520| 6f 6d 61 74 69 63 61 6c | 6c 79 20 73 61 76 65 64 |omatical|ly saved|
|00000530| 2c 5c 6e 73 69 6d 70 6c | 79 20 70 75 74 20 74 68 |,\nsimpl|y put th|
|00000540| 69 73 20 69 6e 20 79 6f | 75 72 20 60 7e 2f 2e 65 |is in yo|ur `~/.e|
|00000550| 6d 61 63 73 27 20 66 69 | 6c 65 3a 5c 6e 5c 6e 28 |macs' fi|le:\n\n(|
|00000560| 73 65 74 71 2d 64 65 66 | 61 75 6c 74 20 73 61 76 |setq-def|ault sav|
|00000570| 65 2d 70 6c 61 63 65 20 | 74 29 22 20 3a 74 79 70 |e-place |t)" :typ|
|00000580| 65 20 27 62 6f 6f 6c 65 | 61 6e 20 3a 67 72 6f 75 |e 'boole|an :grou|
|00000590| 70 20 27 73 61 76 65 2d | 70 6c 61 63 65 29 0a 28 |p 'save-|place).(|
|000005a0| 6d 61 6b 65 2d 76 61 72 | 69 61 62 6c 65 2d 62 75 |make-var|iable-bu|
|000005b0| 66 66 65 72 2d 6c 6f 63 | 61 6c 20 27 73 61 76 65 |ffer-loc|al 'save|
|000005c0| 2d 70 6c 61 63 65 29 0a | 28 63 75 73 74 6f 6d 2d |-place).|(custom-|
|000005d0| 64 65 63 6c 61 72 65 2d | 76 61 72 69 61 62 6c 65 |declare-|variable|
|000005e0| 20 27 73 61 76 65 2d 70 | 6c 61 63 65 2d 66 69 6c | 'save-p|lace-fil|
|000005f0| 65 20 27 28 63 6f 6e 76 | 65 72 74 2d 73 74 61 6e |e '(conv|ert-stan|
|00000600| 64 61 72 64 2d 66 69 6c | 65 6e 61 6d 65 20 22 7e |dard-fil|ename "~|
|00000610| 2f 2e 65 6d 61 63 73 2d | 70 6c 61 63 65 73 22 29 |/.emacs-|places")|
|00000620| 20 22 2a 4e 61 6d 65 20 | 6f 66 20 74 68 65 20 66 | "*Name |of the f|
|00000630| 69 6c 65 20 74 68 61 74 | 20 72 65 63 6f 72 64 73 |ile that| records|
|00000640| 20 60 73 61 76 65 2d 70 | 6c 61 63 65 2d 61 6c 69 | `save-p|lace-ali|
|00000650| 73 74 27 20 76 61 6c 75 | 65 2e 22 20 3a 74 79 70 |st' valu|e." :typ|
|00000660| 65 20 27 66 69 6c 65 20 | 3a 67 72 6f 75 70 20 27 |e 'file |:group '|
|00000670| 73 61 76 65 2d 70 6c 61 | 63 65 29 0a 28 63 75 73 |save-pla|ce).(cus|
|00000680| 74 6f 6d 2d 64 65 63 6c | 61 72 65 2d 76 61 72 69 |tom-decl|are-vari|
|00000690| 61 62 6c 65 20 27 73 61 | 76 65 2d 70 6c 61 63 65 |able 'sa|ve-place|
|000006a0| 2d 76 65 72 73 69 6f 6e | 2d 63 6f 6e 74 72 6f 6c |-version|-control|
|000006b0| 20 27 27 6e 6f 73 70 65 | 63 69 61 6c 20 22 2a 43 | ''nospe|cial "*C|
|000006c0| 6f 6e 74 72 6f 6c 73 20 | 77 68 65 74 68 65 72 20 |ontrols |whether |
|000006d0| 74 6f 20 6d 61 6b 65 20 | 6e 75 6d 62 65 72 65 64 |to make |numbered|
|000006e0| 20 62 61 63 6b 75 70 73 | 20 6f 66 20 6d 61 73 74 | backups| of mast|
|000006f0| 65 72 20 73 61 76 65 2d | 70 6c 61 63 65 20 66 69 |er save-|place fi|
|00000700| 6c 65 2e 5c 6e 49 74 20 | 63 61 6e 20 68 61 76 65 |le.\nIt |can have|
|00000710| 20 66 6f 75 72 20 76 61 | 6c 75 65 73 3a 20 74 2c | four va|lues: t,|
|00000720| 20 6e 69 6c 2c 20 60 6e | 65 76 65 72 27 2c 20 61 | nil, `n|ever', a|
|00000730| 6e 64 20 60 6e 6f 73 70 | 65 63 69 61 6c 27 2e 20 |nd `nosp|ecial'. |
|00000740| 20 54 68 65 20 66 69 72 | 73 74 5c 6e 74 68 72 65 | The fir|st\nthre|
|00000750| 65 20 68 61 76 65 20 74 | 68 65 20 73 61 6d 65 20 |e have t|he same |
|00000760| 6d 65 61 6e 69 6e 67 20 | 74 68 61 74 20 74 68 65 |meaning |that the|
|00000770| 79 20 64 6f 20 66 6f 72 | 20 74 68 65 20 76 61 72 |y do for| the var|
|00000780| 69 61 62 6c 65 5c 6e 60 | 76 65 72 73 69 6f 6e 2d |iable\n`|version-|
|00000790| 63 6f 6e 74 72 6f 6c 27 | 2c 20 61 6e 64 20 74 68 |control'|, and th|
|000007a0| 65 20 66 69 6e 61 6c 20 | 76 61 6c 75 65 20 60 6e |e final |value `n|
|000007b0| 6f 73 70 65 63 69 61 6c | 27 20 6d 65 61 6e 73 20 |ospecial|' means |
|000007c0| 6a 75 73 74 20 75 73 65 | 20 74 68 65 5c 6e 76 61 |just use| the\nva|
|000007d0| 6c 75 65 20 6f 66 20 60 | 76 65 72 73 69 6f 6e 2d |lue of `|version-|
|000007e0| 63 6f 6e 74 72 6f 6c 27 | 2e 22 20 3a 74 79 70 65 |control'|." :type|
|000007f0| 20 27 28 72 61 64 69 6f | 20 28 63 6f 6e 73 74 20 | '(radio| (const |
|00000800| 3a 74 61 67 20 22 55 6e | 63 6f 6e 64 69 74 69 6f |:tag "Un|conditio|
|00000810| 6e 61 6c 6c 79 22 20 74 | 29 20 28 63 6f 6e 73 74 |nally" t|) (const|
|00000820| 20 3a 74 61 67 20 22 46 | 6f 72 20 56 43 20 46 69 | :tag "F|or VC Fi|
|00000830| 6c 65 73 22 20 6e 69 6c | 29 20 28 63 6f 6e 73 74 |les" nil|) (const|
|00000840| 20 6e 65 76 65 72 29 20 | 28 63 6f 6e 73 74 20 3a | never) |(const :|
|00000850| 74 61 67 20 22 55 73 65 | 20 76 61 6c 75 65 20 6f |tag "Use| value o|
|00000860| 66 20 76 65 72 73 69 6f | 6e 2d 63 6f 6e 74 72 6f |f versio|n-contro|
|00000870| 6c 22 20 6e 6f 73 70 65 | 63 69 61 6c 29 29 20 3a |l" nospe|cial)) :|
|00000880| 67 72 6f 75 70 20 27 73 | 61 76 65 2d 70 6c 61 63 |group 's|ave-plac|
|00000890| 65 29 0a 23 40 35 39 20 | 4e 6f 6e 2d 6e 69 6c 20 |e).#@59 |Non-nil |
|000008a0| 6d 65 61 6e 73 20 74 68 | 61 74 20 74 68 65 20 60 |means th|at the `|
|000008b0| 73 61 76 65 2d 70 6c 61 | 63 65 2d 66 69 6c 65 27 |save-pla|ce-file'|
|000008c0| 20 68 61 73 20 62 65 65 | 6e 20 6c 6f 61 64 65 64 | has bee|n loaded|
|000008d0| 2e 1f 0a 28 64 65 66 76 | 61 72 20 73 61 76 65 2d |...(defv|ar save-|
|000008e0| 70 6c 61 63 65 2d 6c 6f | 61 64 65 64 20 6e 69 6c |place-lo|aded nil|
|000008f0| 20 28 23 24 20 2e 20 32 | 32 30 30 29 29 0a 28 63 | (#$ . 2|200)).(c|
|00000900| 75 73 74 6f 6d 2d 64 65 | 63 6c 61 72 65 2d 76 61 |ustom-de|clare-va|
|00000910| 72 69 61 62 6c 65 20 27 | 73 61 76 65 2d 70 6c 61 |riable '|save-pla|
|00000920| 63 65 2d 6c 69 6d 69 74 | 20 27 6e 69 6c 20 22 4d |ce-limit| 'nil "M|
|00000930| 61 78 69 6d 75 6d 20 6e | 75 6d 62 65 72 20 6f 66 |aximum n|umber of|
|00000940| 20 65 6e 74 72 69 65 73 | 20 74 6f 20 72 65 74 61 | entries| to reta|
|00000950| 69 6e 20 69 6e 20 74 68 | 65 20 6c 69 73 74 3b 20 |in in th|e list; |
|00000960| 6e 69 6c 20 6d 65 61 6e | 73 20 6e 6f 20 6c 69 6d |nil mean|s no lim|
|00000970| 69 74 2e 22 20 3a 74 79 | 70 65 20 27 28 63 68 6f |it." :ty|pe '(cho|
|00000980| 69 63 65 20 28 69 6e 74 | 65 67 65 72 20 3a 74 61 |ice (int|eger :ta|
|00000990| 67 20 22 45 6e 74 72 69 | 65 73 22 20 3a 76 61 6c |g "Entri|es" :val|
|000009a0| 75 65 20 31 29 20 28 63 | 6f 6e 73 74 20 3a 74 61 |ue 1) (c|onst :ta|
|000009b0| 67 20 22 4e 6f 20 4c 69 | 6d 69 74 22 20 6e 69 6c |g "No Li|mit" nil|
|000009c0| 29 29 20 3a 67 72 6f 75 | 70 20 27 73 61 76 65 2d |)) :grou|p 'save-|
|000009d0| 70 6c 61 63 65 29 0a 23 | 40 34 32 38 20 54 6f 67 |place).#|@428 Tog|
|000009e0| 67 6c 65 20 77 68 65 74 | 68 65 72 20 74 6f 20 73 |gle whet|her to s|
|000009f0| 61 76 65 20 79 6f 75 72 | 20 70 6c 61 63 65 20 69 |ave your| place i|
|00000a00| 6e 20 74 68 69 73 20 66 | 69 6c 65 20 62 65 74 77 |n this f|ile betw|
|00000a10| 65 65 6e 20 73 65 73 73 | 69 6f 6e 73 2e 0a 49 66 |een sess|ions..If|
|00000a20| 20 74 68 69 73 20 6d 6f | 64 65 20 69 73 20 65 6e | this mo|de is en|
|00000a30| 61 62 6c 65 64 2c 20 70 | 6f 69 6e 74 20 69 73 20 |abled, p|oint is |
|00000a40| 72 65 63 6f 72 64 65 64 | 20 77 68 65 6e 20 79 6f |recorded| when yo|
|00000a50| 75 20 6b 69 6c 6c 20 74 | 68 65 20 62 75 66 66 65 |u kill t|he buffe|
|00000a60| 72 0a 6f 72 20 65 78 69 | 74 20 45 6d 61 63 73 2e |r.or exi|t Emacs.|
|00000a70| 20 20 56 69 73 69 74 69 | 6e 67 20 74 68 69 73 20 | Visiti|ng this |
|00000a80| 66 69 6c 65 20 61 67 61 | 69 6e 20 77 69 6c 6c 20 |file aga|in will |
|00000a90| 67 6f 20 74 6f 20 74 68 | 61 74 20 70 6f 73 69 74 |go to th|at posit|
|00000aa0| 69 6f 6e 2c 0a 65 76 65 | 6e 20 69 6e 20 61 20 6c |ion,.eve|n in a l|
|00000ab0| 61 74 65 72 20 45 6d 61 | 63 73 20 73 65 73 73 69 |ater Ema|cs sessi|
|00000ac0| 6f 6e 2e 0a 0a 49 66 20 | 63 61 6c 6c 65 64 20 77 |on...If |called w|
|00000ad0| 69 74 68 20 61 20 70 72 | 65 66 69 78 20 61 72 67 |ith a pr|efix arg|
|00000ae0| 2c 20 74 68 65 20 6d 6f | 64 65 20 69 73 20 65 6e |, the mo|de is en|
|00000af0| 61 62 6c 65 64 20 69 66 | 20 61 6e 64 20 6f 6e 6c |abled if| and onl|
|00000b00| 79 20 69 66 0a 74 68 65 | 20 61 72 67 75 6d 65 6e |y if.the| argumen|
|00000b10| 74 20 69 73 20 70 6f 73 | 69 74 69 76 65 2e 0a 0a |t is pos|itive...|
|00000b20| 54 6f 20 73 61 76 65 20 | 70 6c 61 63 65 73 20 61 |To save |places a|
|00000b30| 75 74 6f 6d 61 74 69 63 | 61 6c 6c 79 20 69 6e 20 |utomatic|ally in |
|00000b40| 61 6c 6c 20 66 69 6c 65 | 73 2c 20 70 75 74 20 74 |all file|s, put t|
|00000b50| 68 69 73 20 69 6e 20 79 | 6f 75 72 20 60 2e 65 6d |his in y|our `.em|
|00000b60| 61 63 73 27 20 66 69 6c | 65 3a 0a 0a 28 73 65 74 |acs' fil|e:..(set|
|00000b70| 71 2d 64 65 66 61 75 6c | 74 20 73 61 76 65 2d 70 |q-defaul|t save-p|
|00000b80| 6c 61 63 65 20 74 29 1f | 0a 28 64 65 66 61 6c 69 |lace t).|.(defali|
|00000b90| 61 73 20 27 74 6f 67 67 | 6c 65 2d 73 61 76 65 2d |as 'togg|le-save-|
|00000ba0| 70 6c 61 63 65 20 23 5b | 28 26 6f 70 74 69 6f 6e |place #[|(&option|
|00000bb0| 61 6c 20 70 61 72 67 29 | 20 22 08 ac 86 c1 c2 c3 |al parg)| "......|
|00000bc0| 20 5c 22 87 0c ab 90 0d | ab 85 0d c6 58 ab 88 c1 | \".....|....X...|
|00000bd0| c7 21 88 c8 89 14 87 c1 | c9 21 88 ca 89 14 87 22 |.!......|.!....."|
|00000be0| 20 5b 62 75 66 66 65 72 | 2d 66 69 6c 65 2d 6e 61 | [buffer|-file-na|
|00000bf0| 6d 65 20 6d 65 73 73 61 | 67 65 20 22 42 75 66 66 |me messa|ge "Buff|
|00000c00| 65 72 20 60 25 73 27 20 | 6e 6f 74 20 76 69 73 69 |er `%s' |not visi|
|00000c10| 74 69 6e 67 20 61 20 66 | 69 6c 65 22 20 62 75 66 |ting a f|ile" buf|
|00000c20| 66 65 72 2d 6e 61 6d 65 | 20 73 61 76 65 2d 70 6c |fer-name| save-pl|
|00000c30| 61 63 65 20 70 61 72 67 | 20 30 20 22 4e 6f 20 70 |ace parg| 0 "No p|
|00000c40| 6c 61 63 65 20 77 69 6c | 6c 20 62 65 20 73 61 76 |lace wil|l be sav|
|00000c50| 65 64 20 69 6e 20 74 68 | 69 73 20 66 69 6c 65 22 |ed in th|is file"|
|00000c60| 20 6e 69 6c 20 22 50 6c | 61 63 65 20 77 69 6c 6c | nil "Pl|ace will|
|00000c70| 20 62 65 20 73 61 76 65 | 64 22 20 74 5d 20 33 20 | be save|d" t] 3 |
|00000c80| 28 23 24 20 2e 20 32 35 | 32 35 29 20 22 50 22 5d |(#$ . 25|25) "P"]|
|00000c90| 29 0a 28 64 65 66 61 6c | 69 61 73 20 27 73 61 76 |).(defal|ias 'sav|
|00000ca0| 65 2d 70 6c 61 63 65 2d | 74 6f 2d 61 6c 69 73 74 |e-place-|to-alist|
|00000cb0| 20 23 5b 6e 69 6c 20 22 | 08 ac 83 c1 20 88 5c 6e | #[nil "|.... .\n|
|00000cc0| ad a4 c3 5c 6e 0c 5c 22 | 89 1d ab 85 c6 0d 0c 5c |...\n.\"|.......\|
|00000cd0| 22 14 29 0e 07 ad 92 5c | 6e 0e 08 c9 61 ac 83 60 |".)....\|n...a..`|
|00000ce0| aa 83 ca 20 54 42 0c 42 | 89 14 87 22 20 5b 73 61 |... TB.B|..." [sa|
|00000cf0| 76 65 2d 70 6c 61 63 65 | 2d 6c 6f 61 64 65 64 20 |ve-place|-loaded |
|00000d00| 6c 6f 61 64 2d 73 61 76 | 65 2d 70 6c 61 63 65 2d |load-sav|e-place-|
|00000d10| 61 6c 69 73 74 2d 66 72 | 6f 6d 2d 66 69 6c 65 20 |alist-fr|om-file |
|00000d20| 62 75 66 66 65 72 2d 66 | 69 6c 65 2d 6e 61 6d 65 |buffer-f|ile-name|
|00000d30| 20 61 73 73 6f 63 20 73 | 61 76 65 2d 70 6c 61 63 | assoc s|ave-plac|
|00000d40| 65 2d 61 6c 69 73 74 20 | 63 65 6c 6c 20 64 65 6c |e-alist |cell del|
|00000d50| 71 20 73 61 76 65 2d 70 | 6c 61 63 65 20 6d 61 6a |q save-p|lace maj|
|00000d60| 6f 72 2d 6d 6f 64 65 20 | 68 65 78 6c 2d 6d 6f 64 |or-mode |hexl-mod|
|00000d70| 65 20 68 65 78 6c 2d 63 | 75 72 72 65 6e 74 2d 61 |e hexl-c|urrent-a|
|00000d80| 64 64 72 65 73 73 5d 20 | 34 5d 29 0a 28 64 65 66 |ddress] |4]).(def|
|00000d90| 61 6c 69 61 73 20 27 73 | 61 76 65 2d 70 6c 61 63 |alias 's|ave-plac|
|00000da0| 65 2d 61 6c 69 73 74 2d | 74 6f 2d 66 69 6c 65 20 |e-alist-|to-file |
|00000db0| 23 5b 6e 69 6c 20 22 c0 | 09 21 1a 8a c3 c4 5c 6e |#[nil ".|.!....\n|
|00000dc0| 5c 22 88 c5 c6 21 71 88 | 65 64 7c 88 c7 5c 6e 21 |\"...!q.|ed|..\n!|
|00000dd0| ab 84 c8 5c 6e 21 88 65 | 64 7c 88 65 62 88 c9 0e |...\n!.e|d|.eb...|
|00000de0| 5c 6e 70 5c 22 88 0e 0b | ac 83 cc aa 94 0e 0b cd |\np\"...|........|
|00000df0| 61 ab 83 cd aa 8b 0e 0b | ce 61 ab 84 0e 0f aa 81 |a.......|.a......|
|00000e00| d0 1e 0f d1 5c 6e 21 88 | d2 70 21 88 c3 d3 5c 6e |....\n!.|.p!...\n|
|00000e10| 5c 22 2b 87 22 20 5b 65 | 78 70 61 6e 64 2d 66 69 |\"+." [e|xpand-fi|
|00000e20| 6c 65 2d 6e 61 6d 65 20 | 73 61 76 65 2d 70 6c 61 |le-name |save-pla|
|00000e30| 63 65 2d 66 69 6c 65 20 | 66 69 6c 65 20 6d 65 73 |ce-file |file mes|
|00000e40| 73 61 67 65 20 22 53 61 | 76 69 6e 67 20 70 6c 61 |sage "Sa|ving pla|
|00000e50| 63 65 73 20 74 6f 20 25 | 73 2e 2e 2e 22 20 67 65 |ces to %|s..." ge|
|00000e60| 74 2d 62 75 66 66 65 72 | 2d 63 72 65 61 74 65 20 |t-buffer|-create |
|00000e70| 22 20 2a 53 61 76 65 64 | 20 50 6c 61 63 65 73 2a |" *Saved| Places*|
|00000e80| 22 20 66 69 6c 65 2d 72 | 65 61 64 61 62 6c 65 2d |" file-r|eadable-|
|00000e90| 70 20 69 6e 73 65 72 74 | 2d 66 69 6c 65 2d 63 6f |p insert|-file-co|
|00000ea0| 6e 74 65 6e 74 73 20 70 | 72 69 6e 74 20 73 61 76 |ntents p|rint sav|
|00000eb0| 65 2d 70 6c 61 63 65 2d | 61 6c 69 73 74 20 73 61 |e-place-|alist sa|
|00000ec0| 76 65 2d 70 6c 61 63 65 | 2d 76 65 72 73 69 6f 6e |ve-place|-version|
|00000ed0| 2d 63 6f 6e 74 72 6f 6c | 20 6e 69 6c 20 6e 65 76 |-control| nil nev|
|00000ee0| 65 72 20 6e 6f 73 70 65 | 63 69 61 6c 20 76 65 72 |er nospe|cial ver|
|00000ef0| 73 69 6f 6e 2d 63 6f 6e | 74 72 6f 6c 20 74 20 77 |sion-con|trol t w|
|00000f00| 72 69 74 65 2d 66 69 6c | 65 20 6b 69 6c 6c 2d 62 |rite-fil|e kill-b|
|00000f10| 75 66 66 65 72 20 22 53 | 61 76 69 6e 67 20 70 6c |uffer "S|aving pl|
|00000f20| 61 63 65 73 20 74 6f 20 | 25 73 2e 2e 2e 64 6f 6e |aces to |%s...don|
|00000f30| 65 22 5d 20 33 5d 29 0a | 28 64 65 66 61 6c 69 61 |e"] 3]).|(defalia|
|00000f40| 73 20 27 6c 6f 61 64 2d | 73 61 76 65 2d 70 6c 61 |s 'load-|save-pla|
|00000f50| 63 65 2d 61 6c 69 73 74 | 2d 66 72 6f 6d 2d 66 69 |ce-alist|-from-fi|
|00000f60| 6c 65 20 23 5b 6e 69 6c | 20 22 08 3f ad ea c1 10 |le #[nil| ".?....|
|00000f70| c2 0b 21 1c c5 0c 21 ab | dd 8a c6 c7 0b 5c 22 88 |..!...!.|.....\".|
|00000f80| c8 c9 21 71 88 65 64 7c | 88 ca 0c 21 88 65 62 88 |..!q.ed||...!.eb.|
|00000f90| cb 65 64 7b 21 40 16 0c | 0e 0d ab b1 0e 0d ce 58 |.ed{!@..|.......X|
|00000fa0| ab 85 cf 16 0c aa a6 0e | 0c d0 1e 11 89 1e 12 ab |........|........|
|00000fb0| 9b 0e 11 0e 0d 59 ab 87 | 0e 12 cf a1 88 aa 85 0e |.....Y..|........|
|00000fc0| 11 54 16 11 0e 12 41 89 | 16 12 ac 65 2a d3 70 21 |.T....A.|...e*.p!|
|00000fd0| 88 c6 d4 0c 5c 22 88 29 | 29 cf 87 22 20 5b 73 61 |....\".)|).." [sa|
|00000fe0| 76 65 2d 70 6c 61 63 65 | 2d 6c 6f 61 64 65 64 20 |ve-place|-loaded |
|00000ff0| 74 20 65 78 70 61 6e 64 | 2d 66 69 6c 65 2d 6e 61 |t expand|-file-na|
|00001000| 6d 65 20 73 61 76 65 2d | 70 6c 61 63 65 2d 66 69 |me save-|place-fi|
|00001010| 6c 65 20 66 69 6c 65 20 | 66 69 6c 65 2d 72 65 61 |le file |file-rea|
|00001020| 64 61 62 6c 65 2d 70 20 | 6d 65 73 73 61 67 65 20 |dable-p |message |
|00001030| 22 4c 6f 61 64 69 6e 67 | 20 70 6c 61 63 65 73 20 |"Loading| places |
|00001040| 66 72 6f 6d 20 25 73 2e | 2e 2e 22 20 67 65 74 2d |from %s.|.." get-|
|00001050| 62 75 66 66 65 72 2d 63 | 72 65 61 74 65 20 22 20 |buffer-c|reate " |
|00001060| 2a 53 61 76 65 64 20 50 | 6c 61 63 65 73 2a 22 20 |*Saved P|laces*" |
|00001070| 69 6e 73 65 72 74 2d 66 | 69 6c 65 2d 63 6f 6e 74 |insert-f|ile-cont|
|00001080| 65 6e 74 73 20 72 65 61 | 64 2d 66 72 6f 6d 2d 73 |ents rea|d-from-s|
|00001090| 74 72 69 6e 67 20 73 61 | 76 65 2d 70 6c 61 63 65 |tring sa|ve-place|
|000010a0| 2d 61 6c 69 73 74 20 73 | 61 76 65 2d 70 6c 61 63 |-alist s|ave-plac|
|000010b0| 65 2d 6c 69 6d 69 74 20 | 30 20 6e 69 6c 20 31 20 |e-limit |0 nil 1 |
|000010c0| 63 6f 75 6e 74 20 73 20 | 6b 69 6c 6c 2d 62 75 66 |count s |kill-buf|
|000010d0| 66 65 72 20 22 4c 6f 61 | 64 69 6e 67 20 70 6c 61 |fer "Loa|ding pla|
|000010e0| 63 65 73 20 66 72 6f 6d | 20 25 73 2e 2e 2e 64 6f |ces from| %s...do|
|000010f0| 6e 65 22 5d 20 34 5d 29 | 0a 28 64 65 66 61 6c 69 |ne"] 4])|.(defali|
|00001100| 61 73 20 27 73 61 76 65 | 2d 70 6c 61 63 65 73 2d |as 'save|-places-|
|00001110| 74 6f 2d 61 6c 69 73 74 | 20 23 5b 6e 69 6c 20 22 |to-alist| #[nil "|
|00001120| c0 20 19 09 ad 91 8a 09 | 40 71 88 5c 6e ab 83 c3 |. ......|@q.\n...|
|00001130| 20 88 09 41 11 29 aa 6c | 29 87 22 20 5b 62 75 66 | ..A.).l|)." [buf|
|00001140| 66 65 72 2d 6c 69 73 74 | 20 62 75 66 2d 6c 69 73 |fer-list| buf-lis|
|00001150| 74 20 62 75 66 66 65 72 | 2d 66 69 6c 65 2d 6e 61 |t buffer|-file-na|
|00001160| 6d 65 20 73 61 76 65 2d | 70 6c 61 63 65 2d 74 6f |me save-|place-to|
|00001170| 2d 61 6c 69 73 74 5d 20 | 31 5d 29 0a 28 64 65 66 |-alist] |1]).(def|
|00001180| 61 6c 69 61 73 20 27 73 | 61 76 65 2d 70 6c 61 63 |alias 's|ave-plac|
|00001190| 65 2d 66 69 6e 64 2d 66 | 69 6c 65 2d 68 6f 6f 6b |e-find-f|ile-hook|
|000011a0| 20 23 5b 6e 69 6c 20 22 | 08 ac 83 c1 20 88 c2 0b | #[nil "|.... ...|
|000011b0| 0c 5c 22 89 1d ad 8c 0e | 06 ac 84 0d 41 62 88 c7 |.\".....|....Ab..|
|000011c0| 89 16 08 29 87 22 20 5b | 73 61 76 65 2d 70 6c 61 |...)." [|save-pla|
|000011d0| 63 65 2d 6c 6f 61 64 65 | 64 20 6c 6f 61 64 2d 73 |ce-loade|d load-s|
|000011e0| 61 76 65 2d 70 6c 61 63 | 65 2d 61 6c 69 73 74 2d |ave-plac|e-alist-|
|000011f0| 66 72 6f 6d 2d 66 69 6c | 65 20 61 73 73 6f 63 20 |from-fil|e assoc |
|00001200| 62 75 66 66 65 72 2d 66 | 69 6c 65 2d 6e 61 6d 65 |buffer-f|ile-name|
|00001210| 20 73 61 76 65 2d 70 6c | 61 63 65 2d 61 6c 69 73 | save-pl|ace-alis|
|00001220| 74 20 63 65 6c 6c 20 61 | 66 74 65 72 2d 66 69 6e |t cell a|fter-fin|
|00001230| 64 2d 66 69 6c 65 2d 66 | 72 6f 6d 2d 72 65 76 65 |d-file-f|rom-reve|
|00001240| 72 74 2d 62 75 66 66 65 | 72 20 74 20 73 61 76 65 |rt-buffe|r t save|
|00001250| 2d 70 6c 61 63 65 5d 20 | 34 5d 29 0a 28 64 65 66 |-place] |4]).(def|
|00001260| 61 6c 69 61 73 20 27 73 | 61 76 65 2d 70 6c 61 63 |alias 's|ave-plac|
|00001270| 65 2d 6b 69 6c 6c 2d 65 | 6d 61 63 73 2d 68 6f 6f |e-kill-e|macs-hoo|
|00001280| 6b 20 23 5b 6e 69 6c 20 | 22 c0 20 88 09 ad 82 c2 |k #[nil |". .....|
|00001290| 20 87 22 20 5b 73 61 76 | 65 2d 70 6c 61 63 65 73 | ." [sav|e-places|
|000012a0| 2d 74 6f 2d 61 6c 69 73 | 74 20 73 61 76 65 2d 70 |-to-alis|t save-p|
|000012b0| 6c 61 63 65 2d 6c 6f 61 | 64 65 64 20 73 61 76 65 |lace-loa|ded save|
|000012c0| 2d 70 6c 61 63 65 2d 61 | 6c 69 73 74 2d 74 6f 2d |-place-a|list-to-|
|000012d0| 66 69 6c 65 5d 20 31 5d | 29 0a 28 62 79 74 65 2d |file] 1]|).(byte-|
|000012e0| 63 6f 64 65 20 22 c0 c1 | c2 c3 23 88 c0 c4 c5 5c |code "..|..#....\|
|000012f0| 22 88 c0 c6 c7 5c 22 88 | c8 c9 21 87 22 20 5b 61 |"....\".|..!." [a|
|00001300| 64 64 2d 68 6f 6f 6b 20 | 66 69 6e 64 2d 66 69 6c |dd-hook |find-fil|
|00001310| 65 2d 68 6f 6f 6b 73 20 | 73 61 76 65 2d 70 6c 61 |e-hooks |save-pla|
|00001320| 63 65 2d 66 69 6e 64 2d | 66 69 6c 65 2d 68 6f 6f |ce-find-|file-hoo|
|00001330| 6b 20 74 20 6b 69 6c 6c | 2d 65 6d 61 63 73 2d 68 |k t kill|-emacs-h|
|00001340| 6f 6f 6b 20 73 61 76 65 | 2d 70 6c 61 63 65 2d 6b |ook save|-place-k|
|00001350| 69 6c 6c 2d 65 6d 61 63 | 73 2d 68 6f 6f 6b 20 6b |ill-emac|s-hook k|
|00001360| 69 6c 6c 2d 62 75 66 66 | 65 72 2d 68 6f 6f 6b 20 |ill-buff|er-hook |
|00001370| 73 61 76 65 2d 70 6c 61 | 63 65 2d 74 6f 2d 61 6c |save-pla|ce-to-al|
|00001380| 69 73 74 20 70 72 6f 76 | 69 64 65 20 73 61 76 65 |ist prov|ide save|
|00001390| 70 6c 61 63 65 5d 20 34 | 29 0a |place] 4|). |
+--------+-------------------------+-------------------------+--------+--------+